<include file="Index/header" />

<!-- 媒体对象 -->
<div class="container">
	<div class="media">
		<!-- 商品图片 -->
		<div class="media-left">
			<a href="#">
				<img class="media-object" src="__PUBLIC__/images/goods/{$goodsInfo[pic_url]}"
					alt="{$goodsInfo['goods_name']}" width="400px" height="400px">
			</a>
		</div>
		<!-- 商品详细信息 -->
		<div class="media-body">
			<h2 class="media-heading">{$goodsInfo['goods_name']}</h2>
			<p class="text-muted">品牌：{$goodsInfo['goods_brand']}</p>
			<p class="text-muted">描述：{$goodsInfo['goods_descript']}</p>
			<p class="text-muted">状态：
				<eq name="goodsInfo.goods_status" value="1">
					已上架
					<else />
					已下架
				</eq>
			</p>
			<p class="text-muted">上架时间：{$goodsInfo['goods_indate']}</p>
			<p class="place">商品价格：￥{$goodsInfo['goods_price']}</p>
			<p class="text-muted">发货地址：{$goodsInfo['goods_address']}&nbsp;<span>库存：{$goodsInfo['goods_qty']}</span></p>
			<br />
			<p>
				<a href="?m=Home&c=order&a=order&gi={$goodsInfo[goods_id]}" class="btn btn-lg btn-primary">立即购买</a>
				<a href="?m=Home&c=car&a=add&gi={$goodsInfo[goods_id]}" class="btn btn-lg btn-danger">添加到购物车</a>
			</p>
		</div>
	</div>
</div>

<!-- 猜你喜欢 -->
<div class="container">
	<h3>猜你喜欢</h3>
	<!-- 商品 -->
	<div class="row">
		<foreach name="samilarInfo" item="value">
			<if condition="$key lt 4">
				<!-- 只显示前5条 -->
				<div class="thumbnail col-md-3">
					<a href="?m=Home&c=goods&a=item&gi={$value[goods_id]}"><img alt="300x200"
							src="__PUBLIC__/images/goods/{$value['pic_url']}" /></a>
					<div class="caption">
						<h3>
							{$value['goods_name']}
						</h3>
						<p style="height: 40px; overflow: hidden;">
							{$value['goods_descript']}
						</p>
						<p class="place">￥{$value['goods_price']}</p>
						<p>
							<a class="btn btn-primary" href="?m=Home&c=goods&a=item&gi={$value[goods_id]}">查看</a>
						</p>
					</div>
				</div>
			</if>
		</foreach>
	</div>
</div>

<include file="Index/footer" />